<template>
    <div>
        <div v-for="work in myWork" :key="work.id">{{ work }}</div>
    </div>
</template>
<script setup lang="ts">
import { getMyWork } from "@/api/work"
import workType from "@type/work"
import { ref, Ref } from "vue"
let myWork: Ref<Array<workType>> = ref([])
async function getWork() {
    let { data } = await getMyWork()
    myWork.value = data
}
getWork()
</script>